using System;
using System.Drawing;

namespace SBPweb.Themes.Windows.Schemes
{
	/// <summary>
	/// Class of AlphaBlendedColorTable
	/// </summary>
    public class AlphaBlendedColorTable : CustomColorTable
    {
		private int pAlpha;

        /// <summary>
		/// Constructor of AlphaBlendedColorTable
        /// </summary>
        /// <param name="scheme">scheme</param>
        /// <param name="alpha">alpha</param>
		public AlphaBlendedColorTable(Scheme scheme, int alpha)
            : base(scheme)
        {
            pAlpha = alpha;
        }

		/// <summary>
		/// Color of toolstrip gradient begin
		/// </summary>
        public override Color ToolStripGradientBegin
        {
            get
            {
                return Color.FromArgb(pAlpha, base.ToolStripGradientBegin);
            }
        }

		/// <summary>
		/// Color of toolstrip gradient middle
		/// </summary>
		public override Color ToolStripGradientMiddle
        {
            get
            {
                return Color.FromArgb(pAlpha, base.ToolStripGradientMiddle);
            }
        }

		/// <summary>
		/// Color of toolstrip gradient end
		/// </summary>
		public override Color ToolStripGradientEnd
        {
            get
            {
                return Color.FromArgb(pAlpha, base.ToolStripGradientEnd);
            }
        }
    }
}
